package com.xmh.ssm.other;

import org.junit.Test;
import org.junit.runner.RunWith;
import org.mybatis.spring.SqlSessionFactoryBean;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
import org.springframework.transaction.annotation.Transactional;

@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration("/spring_bean.xml")
@Transactional
public class SpringJunitTest {
	
	@Autowired
	private SqlSessionFactoryBean sqlSessionFactory;
	
	@Test
	public void test() {
		System.out.println(sqlSessionFactory);
	}

}
